<template>
	<div class="list uni-flex-column" >
		<view @click="tolist(data)" class="item uni-flex-title uni-flex-row" v-for="(data, index) in list" :key='data.id'>
			<view class="uni-flex-column">
				<text>{{ data.name }}</text>
			</view>
			<vimage class="img_box" :src="data.img" mode=""></vimage>
			
		</view>
	</div>
</template>

<script>
export default {
	props: {
		list: {
			type: Array,
			default: []
		}
	},
	methods:{
		tolist(data) {
			let id=''
			if(data.pid){
				id=data.pid+'->'+data.id
			}else{
				id=data.id
			}
			this.Jumpurl({
				link:'../list/list?id=' + id,
				type:1,
				login_type:1
			})
		}
	}
};
</script>

<style lang="scss">
.list {
	// height: calc(100vh - 50px - 46px);
}
.item {
	padding-left: 24rpx;
	background: #f5f5f5;
	margin: 20rpx;
	.img_box{
		width: 160rpx;
		height: 160rpx;
	}
	// image {
		
	// }
}
</style>
